package cn.com.xiaoshoujia.activities.dto;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * @author dulei
 * @Time 2017/8/6 7:55
 */
public class ActivityOrderWxDTO {
    @NotNull
    private String sysId;//用户sysID
    @NotNull
    private Long id;//活动ID
    @NotNull
    private String userName;//用户名
    @NotNull
    @Pattern(regexp = "^(0|86|17951)?(13[0-9]|15[0-9]|17[0-9]|18[0-9]|14[0-9]|19[0-9]|16[0-9])[0-9]{8}$", message = "手机号码错误")
    private String cluesPhone;//手机号
    @NotNull
    private String identifyingCode;//验证码
    private Long headId;
    @NotNull
    private String valueJson;
    @NotNull
    @Min(1)
    @Max(3)
    private Integer type;

    @NotNull
    private BigDecimal price;

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getSysId() {
        return sysId;
    }

    public void setSysId(String sysId) {
        this.sysId = sysId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCluesPhone() {
        return cluesPhone;
    }

    public void setCluesPhone(String cluesPhone) {
        this.cluesPhone = cluesPhone;
    }

    public String getIdentifyingCode() {
        return identifyingCode;
    }

    public void setIdentifyingCode(String identifyingCode) {
        this.identifyingCode = identifyingCode;
    }

    public Long getHeadId() {
        return headId;
    }

    public void setHeadId(Long headId) {
        this.headId = headId;
    }

    public String getValueJson() {
        return valueJson;
    }

    public void setValueJson(String valueJson) {
        this.valueJson = valueJson;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
